<!DOCTYPE html>

<link href="../../web/images/skin.css" rel="stylesheet" type="text/css" />
<link href="../../web/css/admin_style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css"></style>
<script src="../../web/js/admin.js" type="text/javascript"></script>
<style type="text/css">
body {  
margin: 40px auto;  
font-family: 'trebuchet MS', 'Lucida sans', Arial;  
font-size: 14px;  
color: #444;  
}  
  
table {  
font-size: 15px;
*border-collapse: collapse; /* IE7 and lower */  
border-spacing: 0;  
width: 100%;  
}  
  
.bordered {  
border: solid #ccc 1px;  
-moz-border-radius: 6px;  
-webkit-border-radius: 6px;  
border-radius: 6px;  
-webkit-box-shadow: 0 1px 1px #ccc;  
-moz-box-shadow: 0 1px 1px #ccc;  
box-shadow: 0 1px 1px #ccc;  
}  
  
.bordered tr:hover {  
background: #fbf8e9;  
-o-transition: all 0.1s ease-in-out;  
-webkit-transition: all 0.1s ease-in-out;  
-moz-transition: all 0.1s ease-in-out;  
-ms-transition: all 0.1s ease-in-out;  
transition: all 0.1s ease-in-out;  
}  
  
.bordered td, .bordered th {  
border-left: 1px solid #ccc;  
border-top: 1px solid #ccc;  
padding: 5px;  
text-align: center;  
}  
  
.bordered th {  
background-color: #dce9f9;  
background-image: -webkit-gradient(linear, left top, left bottom, from(#ebf3fc), to(#dce9f9));  
background-image: -webkit-linear-gradient(top, #ebf3fc, #dce9f9);  
background-image: -moz-linear-gradient(top, #ebf3fc, #dce9f9);  
background-image: -ms-linear-gradient(top, #ebf3fc, #dce9f9);  
background-image: -o-linear-gradient(top, #ebf3fc, #dce9f9);  
background-image: linear-gradient(top, #ebf3fc, #dce9f9);  
-webkit-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;  
-moz-box-shadow:0 1px 0 rgba(255,255,255,.8) inset;  
box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;  
border-top: none;  
text-shadow: 0 1px 0 rgba(255,255,255,.5);  
}  
  
.bordered td:first-child, .bordered th:first-child {  
border-left: none;  
}  
  
.bordered th:first-child {  
-moz-border-radius: 6px 0 0 0;  
-webkit-border-radius: 6px 0 0 0;  
border-radius: 6px 0 0 0;  
}  
  
.bordered th:last-child {  
-moz-border-radius: 0 6px 0 0;  
-webkit-border-radius: 0 6px 0 0;  
border-radius: 0 6px 0 0;  
}  
  
.bordered th:only-child{  
-moz-border-radius: 6px 6px 0 0;  
-webkit-border-radius: 6px 6px 0 0;  
border-radius: 6px 6px 0 0;  
}  
  
.bordered tr:last-child td:first-child {  
-moz-border-radius: 0 0 0 6px;  
-webkit-border-radius: 0 0 0 6px;  
border-radius: 0 0 0 6px;  
}  
  
.bordered tr:last-child td:last-child {  
-moz-border-radius: 0 0 6px 0;  
-webkit-border-radius: 0 0 6px 0;  
border-radius: 0 0 6px 0;  
}  


</style>
<script>

	function openPdf(dir)
	{
		dir = dir.substring(2,dir.length);
		window.open("/decision-making-platform/" + dir);
	}

</script>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="../../web/images/mail_leftbg.gif"><img src="../../web/images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="../../web/images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">数据编辑</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="../../web/images/mail_rightbg.gif"><img src="../../web/images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="../../web/images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="2" valign="top">&nbsp;</td>
        <td>&nbsp;</td>
        <td valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td width="7%">&nbsp;</td>
        <td width="87%" valign="top">
        <?php 
          $arg = $_GET['item'];
          $item = explode(":",$arg);
          $type = $_GET['type'];
          //var_dump($item);
        ?>
          
         <form action="../../index.php?CitydevelopController/editItem/<?php echo $item[0]; ?>" method="post"  enctype="multipart/form-data" >
        <table class="bordered" width="100%" height="144" border="1" cellpadding="0" cellspacing="0" class="line_table">
			
			<tr>
				<th width='30%' class='left_bt2' align='center'>项目名称</th>
				<td width='70%' class='left_bt2' align='center'><input style="width:350px" type="text" class="edit_item"  name="name" value="<?php echo $item[1]?>" /></td>
			</tr>	
			<tr>
				<th width='30%' class='left_bt2' align='center'>项目类型</th>
				<td width='70%' class='left_bt2' align='center'>
					<select  style="width:350px"  name="library"  id="library">
					  <option value="城市发展案例库" <?php if($item[5]=="城市发展案例库") {echo ("selected='selected'");}?>>城市发展案例库</option>
					  <option value="城市百科知识库" <?php if($item[5]=="城市百科知识库") {echo ("selected='selected'");}?>>城市百科知识库</option>
					  <option value="城市数据知识库" <?php if($item[5]=="城市数据知识库") {echo ("selected='selected'");}?>>城市数据知识库</option>
					</select>
				</td>
			</tr>	
			<tr>
				<th width='30%' class='left_bt2' align='center'>创建时间</th>
				<td width='70%' class='left_bt2' align='center'>
					<select  style="width:350px"  name="time"  id="time">
					  <option value="2013" <?php if($item[2]=="2013") {echo ("selected='selected'");}?>>2013</option>
					  <option value="2012" <?php if($item[2]=="2012") {echo ("selected='selected'");}?>>2012</option>
					  <option value="2011" <?php if($item[2]=="2011") {echo ("selected='selected'");}?>>2011</option>
					  <option value="2010" <?php if($item[2]=="2010") {echo ("selected='selected'");}?>>2010</option>
					  <option value="2009" <?php if($item[2]=="2009") {echo ("selected='selected'");}?>>2009</option>
					  <option value="2008" <?php if($item[2]=="2008") {echo ("selected='selected'");}?>>2008</option>
					  <option value="2007" <?php if($item[2]=="2007") {echo ("selected='selected'");}?>>2007</option>
					  <option value="2006" <?php if($item[2]=="2006") {echo ("selected='selected'");}?>>2006</option>
					  <option value="2005" <?php if($item[2]=="2005") {echo ("selected='selected'");}?>>2005</option>
					  <option value="2004" <?php if($item[2]=="2004") {echo ("selected='selected'");}?>>2004</option>
					  <option value="2003" <?php if($item[2]=="2003") {echo ("selected='selected'");}?>>2003</option>
					  <option value="2002" <?php if($item[2]=="2002") {echo ("selected='selected'");}?>>2002</option>
					  <option value="2001" <?php if($item[2]=="2001") {echo ("selected='selected'");}?>>2001</option>
					  <option value="2000" <?php if($item[2]=="2000") {echo ("selected='selected'");}?>>2000</option>
					</select>
				</td>
			</tr>
			<tr>
				<th width='30%' class='left_bt2' align='center'>项目评价</th>
				<td width='70%' class='left_bt2' align='center'>
					<select style="width:350px" 100px name="star"  id="star">
						  <option value="5" <?php if($item[3]=="5") {echo ("selected='selected'");}?>>5</option>
						  <option value="4" <?php if($item[3]=="4") {echo ("selected='selected'");}?>>4</option>
						  <option value="3" <?php if($item[3]=="3") {echo ("selected='selected'");}?>>3</option>
						  <option value="2" <?php if($item[3]=="2") {echo ("selected='selected'");}?>>2</option>
						  <option value="1" <?php if($item[3]=="1") {echo ("selected='selected'");}?>>1</option>
						  <option value="0" <?php if($item[3]=="0") {echo ("selected='selected'");}?>>0</option>
					</select>
				</td>
			</tr>
			<tr>
				<th width='30%' class='left_bt2' align='center'>关键字</th>
				<td width='70%' class='left_bt2' align='center'><input style="width:350px" type="text" class="edit_item"  name="label" value="<?php echo $item[4]?>" /></td>
			</tr>	
			<tr>
				<th width='30%' class='left_bt2' align='center'>上传文件</th>
				<td width='70%' class='left_bt2' align='center'>
					<input  style="width:350px" type="file" name="upload" id="upload"  size="20" />
				</td>
			</tr>
			<tr>
				<th width='30%' class='left_bt2' align='center'>查看文件</th>
				<td width='70%' class='left_bt2' align='center'>
					<input  style="width:350px;height:25px;" type="button" value="PDF原文件" onclick="openPdf('<?php echo $item['6']; ?>')" />
				</td>
			</tr>			
        </form>
          <tr>
            <th width='30%' class='left_bt2' align='center'>			  	
              操作
            </th>
              
            <td width='70%' class='left_bt2' align='center'>
              <input type="submit" value="保存" />
            </td>
          <tr>
        </table>
        </td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>



      <tr>
        <td width="2%">&nbsp;</td>
        <td width="51%" class="left_txt"><img src="../../web/images/icon-mail2.gif" width="16" height="11">咨询邮箱：842232836@qq.com<br>
              <img src="../../web/images/icon-phone.gif" width="17" height="14"> 联系电话：15001767316</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
    <td background="../../web/images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="../../web/images/mail_leftbg.gif"><img src="../../web/images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="../../web/images/buttom_bgs.gif"><img src="../../web/images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="../../web/mages/mail_rightbg.gif"><img src="../../web/images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>